<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
            function getLength(){
                console.log(history.length);
            }
    </script>
</head>
<body>
    <button onclick="getLength()">获取length</button>
    <br>

    <a href="">href=""</a>
    <br>

    <a href="#">href="#"</a>
    <br>
    <a href="01-screen.html">screen</a>
    <br>
    <button onclick="history.forward()">前进</button>
    <button onclick="history.back()">后退</button>
    <button onclick="history.go(1)">go-前进</button>
    <button onclick="history.go(-1)">go-后退</button>
    <button onclick="history.go(2)">go-前进2</button>
    <button onclick="history.go(-2)">go-后退2</button>



</body>
</html>